package com.vslimit.command;

import com.vslimit.dto.VoaCatDTO;
import com.vslimit.statement.VoaCatlStatement;
import org.springframework.jdbc.core.RowMapper;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: vslimit
 * Date: 12-4-4
 * Time: 上午12:55
 * To change this template use File | Settings | File Templates.
 */
public class VoaCatCommand extends PageCommand {

    private Integer pid;
    private RowMapper rowMapper;

    @Override
    public List commandToParameter() {
        List<Object> objectList = new ArrayList<Object>();
        return objectList;
    }

    public List<VoaCatDTO> findByPid() {
        return getJdbcTemplate().query(VoaCatlStatement.FIND_CAT,rowMapper, new Object[]{pid});
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public RowMapper getRowMapper() {
        return rowMapper;
    }

    public void setRowMapper(RowMapper rowMapper) {
        this.rowMapper = rowMapper;
    }
}
